package com.atguigu.tingshu.user.client;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.user.client.impl.VipServiceConfigDegradeFeignClient;
import com.atguigu.tingshu.vo.base.user.VipServiceConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user", fallback = VipServiceConfigDegradeFeignClient.class)
public interface VipServiceConfigFeignClient {
    @GetMapping("api/user/vipServiceConfig/getVipConfig/{id}")
    Result<VipServiceConfig> getVipConfig(@PathVariable Long id);

}